﻿using JV.Com.Tools;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Documents;

namespace JV.Com.Converters
{
    public sealed class HTMLInlineCollectionToParagraphConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, string language)
        {
            if (value is HTMLInlineCollection)
            {
                return ((HTMLInlineCollection)value).ToParagraph();
            }
            else
            {
                return new Paragraph();
            }
        }

        public object ConvertBack(object value, Type targetType, object parameter, string language)
        {
            throw new NotImplementedException();
        }
    }
}
